package com.cloudkinto.common.web;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class CMResult {
    @JsonProperty("-version")
    private String version;
    @JsonProperty("ResultSet")
    private ResultSetDTO resultSet;

    @NoArgsConstructor
    @Data
    public static class ResultSetDTO {
        @JsonProperty("-TotalResult")
        private String totalResult;
        @JsonProperty("ResultStatus")
        private ResultStatusDTO resultStatus;
        @JsonProperty("Result")
        private CMOrder result;

        @NoArgsConstructor
        @Data
        public static class ResultStatusDTO {
            @JsonProperty("GetStatus")
            private String getStatus;
            @JsonProperty("Message")
            private String message;
        }

    }

}
